﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Batalha_Estelar
{
    class ControleTela
    {
        private int largura, altura;

        public ControleTela()
        {
            var config = GameConfig.GetCurrent();

            largura = config.FieldWidth;
            altura = config.FieldHeight;
        }

        public bool EstaDentro(Vector2 p, int width, int height)
        {
            if ((p.X < 0) || (p.X > largura - width) || (p.Y < 0) || (p.Y > altura - height))
            {
                return false;
            }
            else
            {
                return true;
            }
        }

    }
}
